//外部访问控制表接口
import request from '@/utils/request'

//获取外部注册信息分页列表
export function queryOutClientPageList(data) {
	return request({
		method: 'get',
		url: 'tbOutClient/queryPageList',
		params: data,
	})
}

//添加外部注册信息
export function addedOutClient(data) {
	return request({
		method: 'post',
		url: 'tbOutClient/add',
		data,
	})
}

//删除外部注册信息
export function deleteOutClient(id) {
	return request({
		method: 'get',
		url: 'tbOutClient/delete/' + id,
	})
}

//删除外部注册信息
export function updateOutClient(data) { //编辑一条外部访问接口的注册信息
	return request({
		method: 'post',
		url: 'tbOutClient/update',
		data,
	})
}

//注册信息详情
export function outClientDetail(id) {
	return request({
		method: 'get',
		url: 'tbOutClient/query/' + id
	})
}

//激活或封禁外部注册信息
export function updateOutClientDel(data) {
	return request({
		method: 'post',
		url: 'tbOutClient/updateDel',
		data,
	})
}

//查询定义的外部注册信息
export function queryOutClientDefineList(data) {
	return request({
		method: 'get',
		url: 'tbOutClient/queryDefInterfaceList',
		params: data,
	})
}